import { PageQuery } from '/@/types/global';

export interface UserVO {
  id: number;
  username: string;
  nickname: string;
  email: string;
  avatar: string;
  roles: string[];
  roleIds: number[];
  departmentId: number;
  permissions: PermissionsVO[];
}

export interface PermissionsVO {
  label: string;
  value: string;
}

export interface UserForm {
  id: number | undefined;
  username: string;
  nickname: string;
  email: string;
  description: string;
  status: string;
  roleIds: number[];
  departmentId: number | undefined;
}

export interface UserQuery extends PageQuery {
  username: string;
  email: string;
}